package com.example.dormitoryscoresystem.repository;

import com.example.dormitoryscoresystem.entity.ScoreRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;
import java.util.List;

public interface ScoreRepository extends JpaRepository<ScoreRecord, Long> {
    List<ScoreRecord> findByDormIdAndFloorAndCreatedTimeBetween(
            String dormId,
            String floor,
            LocalDateTime start,
            LocalDateTime end
    );
}
